package com.hjlh.aimedical.common.respone;

import lombok.Data;

import java.util.List;

@Data
public class DsReponse {

    private List<Choices> choices;

    private Long created;

    private String id;

    private String model;

    private String object;

    private String systemFingerprint;

    private Usage usage;

    @Data
    public class Usage{

        private Integer completionTokens;

        private Integer promptCacheHitTokens;

        private Integer promptCacheMissTokens;

        private Integer promptTokens;

        private PromptTokensDetails promptTokensDetails;

        private Integer totalTokens;

        @Data
        public class  PromptTokensDetails{

            private Integer cachedTokens;
        }
    }



    @Data
    public class Choices{

        private String finishReason;

        private Integer index;

        private Message message;

        @Data
        public class Message{

            private String content;

            private String role;

        }
    }



}
